package ar.com.vates.ejercicio01;

public class Punto {

	private int x;
	private int y;
	
	public Punto() {
		super();
	}
	public Punto(int x, int y) {
		super();
		this.x = x;
		this.y = y;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public double calcularDistanciaDesde(Punto p)
	{
		return Math.sqrt(Math.pow((p.getX()-this.getX()), 2)+Math.pow((p.getY()-this.getY()),2));
	}
}
